fold

inline fun <R> fold(onError: (AttestationResult.Error) -> R, onSuccess: (T, AttestationResult) -> R): R